<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>

</body>
<script>
	// 报名--->学习---->整理简历---->投递简历----->面试----->offer----->上班---->工资
	new Promise((resolve,reject)=>{
		setTimeout(function(){
			resolve("报名完成");
		},1000)
	}).then(value=>{
		console.log(value);
		return new Promise((resolve,reject)=>{
			setTimeout(()=>{
				reject("下课了，电脑都不带回去，敲啥呀，学啥呀，未完成");
			},1000)
		})
	}).then(value=>{
		console.log(value);
		return new Promise((resolve,reject)=>{
			setTimeout(()=>{
				resolve("整理简历完成");
			},1000)
		})
	}).then(value=>{
		console.log(value);
		return new Promise((resolve,reject)=>{
			setTimeout(()=>{
				resolve("投递简历完成");
			},1000)
		})
	}).then(value=>{
		console.log(value);
		return new Promise((resolve,reject)=>{
			setTimeout(()=>{
				resolve("面试完成");
			},1000)
		})
	}).then(value=>{
		console.log(value);
		return new Promise((resolve,reject)=>{
			setTimeout(()=>{
				resolve("offer完成");
			},1000)
		})
	}).then(value=>{
		console.log(value);
		return new Promise((resolve,reject)=>{
			setTimeout(()=>{
				resolve("上班完成");
			},1000)
		})
	}).then(value=>{
		console.log(value);
		return new Promise((resolve,reject)=>{
			setTimeout(()=>{
				resolve("工资完成");
			},1000)
		})
	}).then(value=>{
		console.log(value)
	}).catch(reason=>{
		console.log(reason);
	})
</script>
</html>